package com.cc.view.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
public class Book {
  private Integer id; 
  private String name; 
  private String author;

  @JsonIgnore
  private Float price;
  @JsonFormat(pattern =	"yyyy-MM-dd")
  private Date publicationDate;
  //省略 getter/setter
}  